#!/usr/local/bin/python3
# -*- coding: UTF-8 -*- 
import os
import json
import sys
import shutil
import zipfile

# 取最后切分后的一位
def splitString(infoString,symbol):
    strlist = infoString.split(symbol)	# 用逗号分割str字符串，并保存到列表
    # print(strlist)
    length=len(strlist)
    # print(length)
    value=""
    for index,string in enumerate(strlist):
        if length-1==index:

            value=string
    return value
 # 取切分指定下标的子串 
def splitStringByIndex(infoString,symbol,index):
    strlist = infoString.split(symbol)	# 用逗号分割str字符串，并保存到列表
    # print(strlist)
    length=len(strlist)
    # print(length)
    value=""
    for i,string in enumerate(strlist):
        if i==index:
            value=string
    return value  

#替换字符 
def replaceStr(pos,content,length,replaceStr): 
    if pos != -1:
        return content[:pos] +replaceStr +content[pos+length:]
    